Skip to content

add isDrawnWithInversionCircle prop #575

Open
shehaban wants to merge 6 commits intotscircuit:mainfrom
shehaban:main
Open

add isDrawnWithInversionCircle prop #575
shehaban wants to merge 6 commits intotscircuit:mainfrom
shehaban:main

Conversation

@shehaban
Copy link

@shehaban shehaban commented Feb 1, 2026

This PR introduces a new optional property, isDrawnWithInversionCircle, and its corresponding Zod schema. This allows users to specify whether a net should be rendered with an inversion circle (often used in digital logic schematics to represent a NOT/inverted signal).

@shehaban shehaban changed the title add isDrawnWithInversionCircle prop to Net component add isDrawnWithInversionCircle prop Feb 1, 2026
Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it on a net?

@seveibar
Copy link
Contributor

seveibar commented Feb 1, 2026

only a port property

@shehaban shehaban requested a review from seveibar February 1, 2026 16:20
Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor to schStyle={{ inversionCircle: boolean }}

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@shehaban shehaban marked this pull request as draft February 4, 2026 19:27
@shehaban shehaban marked this pull request as ready for review February 5, 2026 11:01
@shehaban shehaban requested a review from seveibar February 5, 2026 11:02
export interface SchStyle {
defaultPassiveSize?: "xs" | "sm" | "md" | string | number
defaultCapacitorOrientation?: "vertical" | "none"
inversionCircle?: boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable naming inconsistency detected. The PR description mentions adding 'isDrawnWithInversionCircle' property, but the actual implementation uses 'inversionCircle'. Variable naming and API design is important - the property name should be consistent with what was described in the PR. Consider either updating the property name to match the description ('isDrawnWithInversionCircle') or updating the PR description to match the implementation ('inversionCircle'). Boolean properties often benefit from descriptive names that clearly indicate their purpose, so 'isDrawnWithInversionCircle' would be more self-documenting.

Suggested change
inversionCircle?: boolean
isDrawnWithInversionCircle?: boolean

Spotted by Graphite Agent (based on custom rule: Custom rule)

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants